{% extends "panel.html" %}
{% load i18n %}

{% block label %}parts{% endblock label %}

{% block heading %}
{% trans "Part Settings" %}
{% endblock heading %}

{% block content %}

<table class='table table-striped table-condensed'>
    <tbody>
        {% include "InvenTree/settings/setting.html" with key="PART_ENABLE_REVISION" %}
        {% include "InvenTree/settings/setting.html" with key="PART_IPN_REGEX" %}
        {% include "InvenTree/settings/setting.html" with key="PART_ALLOW_DUPLICATE_IPN" %}
        {% include "InvenTree/settings/setting.html" with key="PART_ALLOW_EDIT_IPN" %}
        {% include "InvenTree/settings/setting.html" with key="PART_NAME_FORMAT" %}
        {% include "InvenTree/settings/setting.html" with key="PART_SHOW_RELATED" icon="fa-random" %}
        {% include "InvenTree/settings/setting.html" with key="PART_CREATE_INITIAL" icon="fa-boxes" %}
        {% include "InvenTree/settings/setting.html" with key="PART_CREATE_SUPPLIER" icon="fa-shopping-cart" %}
        <tr><td colspan='5'></td></tr>
        {% include "InvenTree/settings/setting.html" with key="PART_TEMPLATE" icon="fa-clone" %}
        {% include "InvenTree/settings/setting.html" with key="PART_ASSEMBLY" icon="fa-tools" %}
        {% include "InvenTree/settings/setting.html" with key="PART_COMPONENT" icon="fa-th" %}
        {% include "InvenTree/settings/setting.html" with key="PART_TRACKABLE" icon="fa-directions" %}
        {% include "InvenTree/settings/setting.html" with key="PART_PURCHASEABLE" icon="fa-shopping-cart" %}
        {% include "InvenTree/settings/setting.html" with key="PART_SALABLE" icon="fa-dollar-sign" %}
        {% include "InvenTree/settings/setting.html" with key="PART_VIRTUAL" icon="fa-ghost" %}
        <tr><td colspan='5'></td></tr>
        {% include "InvenTree/settings/setting.html" with key="PART_COPY_BOM" %}
        {% include "InvenTree/settings/setting.html" with key="PART_COPY_PARAMETERS" %}
        {% include "InvenTree/settings/setting.html" with key="PART_COPY_TESTS" %}
        {% include "InvenTree/settings/setting.html" with key="PART_CATEGORY_PARAMETERS" %}
        <tr><td colspan='5'></td></tr>
        {% include "InvenTree/settings/setting.html" with key="PART_CATEGORY_DEFAULT_ICON" icon="fa-icons" %}
    </tbody>
</table>

<div class='panel-heading'>
    <div class='d-flex flex-span'>
        <h4>{% trans "Part Import" %}</h4>
        {% include "spacer.html" %}
        <div class='btn-group' role='group'>
            <button class='btn btn-success' id='import-part'>
                <span class='fas fa-plus-circle'></span> {% trans "Import Part" %}
            </button>
        </div>
    </div>
</div>

<table class='table table-striped table-condensed'>
    <tbody>
        {% include "InvenTree/settings/setting.html" with key="PART_SHOW_IMPORT" icon="fa-file-upload" %}
    </tbody>
</table>

{% endblock content %}
